home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3bbinimagewritingjob.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.8 KB  |  80 lines

  1. /*
  2.  *
  3.  * $Id$
  4.  * Copyright (C) 2003 Klaus-Dieter Krannich <kd@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16.  
  17. #ifndef K3BBINIMAGEWRITINGJOB_H
  18. #define K3BBINIMAGEWRITINGJOB_H
  19.  
  20. #include <k3bjob.h>
  21. #include "k3b_export.h"
  22. class K3bAbstractWriter;
  23. namespace K3bDevice {
  24.   class Device;
  25. }
  26.  
  27. /**
  28.   *@author Klaus-Dieter Krannich
  29.   */
  30. class LIBK3B_EXPORT K3bBinImageWritingJob : public K3bBurnJob
  31. {
  32.   Q_OBJECT
  33.  
  34.  public: 
  35.   K3bBinImageWritingJob( K3bJobHandler*, QObject* parent = 0 );
  36.   ~K3bBinImageWritingJob();
  37.  
  38.   K3bDevice::Device* writer() const { return m_device; };
  39.  
  40.   QString jobDescription() const;
  41.   QString jobDetails() const;
  42.  
  43.  public slots:
  44.   void start();
  45.   void cancel();
  46.  
  47.   void setWriter( K3bDevice::Device* dev ) { m_device = dev; }
  48.   void setSimulate( bool b ) { m_simulate = b; }
  49.   void setForce(bool b) { m_force = b; }
  50.   void setMulti( bool b ) { m_noFix = b; }
  51.   void setTocFile( const QString& s);
  52.   void setCopies(int c) { m_copies = c; }
  53.   void setSpeed( int s ) { m_speed = s; }
  54.  
  55.  private slots:
  56.   void writerFinished(bool);
  57.   void copyPercent(int p);
  58.   void copySubPercent(int p);
  59.   void slotNextTrack( int, int );
  60.  
  61.  private:
  62.   void writerStart();
  63.   bool prepareWriter();
  64.  
  65.   K3bDevice::Device* m_device;
  66.   bool m_simulate;
  67.   bool m_force;
  68.   bool m_noFix;
  69.   QString m_tocFile;
  70.   int m_speed;
  71.   int m_copies;
  72.   int m_finishedCopies;
  73.  
  74.   bool m_canceled;
  75.  
  76.   K3bAbstractWriter* m_writer;
  77. };
  78.  
  79. #endif
  80.